package com.learn.dto;

/**
 * 文件类
 */
public class Files {
    private int fid;//文件id
    private int fsize;//文件大小
    private String name;//文件名字
    private String path;//文件存储路径
    private int uid;//当前上传文件的用户的id

    public Files() {
    }

    public Files(int fid, int fsize, String name, String path, int uid) {
        this.fid = fid;
        this.fsize = fsize;
        this.name = name;
        this.path = path;
        this.uid = uid;
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    public int getFsize() {
        return fsize;
    }

    public void setFsize(int fsize) {
        this.fsize = fsize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Files{" +
                "fid=" + fid +
                ", fsize=" + fsize +
                ", name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", uid=" + uid +
                '}';
    }
}
